package com.example.jetpacktest.room.bean

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.PrimaryKey

@Entity(tableName = "play_list", foreignKeys = [ForeignKey(entity = AUser::class, parentColumns = ["user_id"], childColumns = ["creator_id"])])
data class PlayList(
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "play_list_id")
    val playListId: Long = 0,
    @ColumnInfo(name = "play_list_name") val playListName: String,
    @ColumnInfo(name = "creator_id") val creatorId: Long
)
